package com.twu.biblioteca;

import java.io.PrintStream;
import java.util.List;


public class ConsolePrinter
{
    private PrintStream printStream;

    public ConsolePrinter(PrintStream printStream) {
        this.printStream = printStream;
    }

    public void print(String message) {
        printStream.println(message);
    }

    public void print(List<String> list) {
        for(String item: list){
        printStream.println(item);
        }
    }

}
